package homework_07.homework_Car;

public class Bus extends Automoblie{
    private String seatCount;

    public Bus(String brand, int dayRent,String seatCount) {
        super(brand, dayRent);
        this.seatCount=seatCount;
    }

    public String getSeatCount() {
        return seatCount;
    }

    public void setSeatCount(String seatCount) {
        this.seatCount = seatCount;
    }

    @Override
    public int rent(int days) {
        return getDayRent()*days;
    }
}
